package com.lzb.randomturntable.adapter;

import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.lzb.basic.ProviderMultiAdapter;
import com.lzb.randomturntable.R;
import com.lzb.randomturntable.bean.BombBean;

public class BombAdapter extends ProviderMultiAdapter<BombBean> {

    public BombAdapter() {
        addItemProvider(new BombProvider());
    }

    private class BombProvider extends BaseItemProvider<BombBean> {
        @Override
        public int getItemViewType() {
            return ProviderMultiAdapter.TYPE_VIEW;
        }

        @Override
        public int getLayoutId() {
            return R.layout.item_bomb;
        }

        @Override
        public void convert(@NonNull BaseViewHolder baseViewHolder, BombBean bean) {
            baseViewHolder.setVisible(R.id.ivBombItemImg, bean.isShow());
        }
    }
}